
{foreach name="make_users" item="make_users" key="mm"}
<li class="item-content">
    <div class="item-media">
        <img src="{$make_users['head_img']}">
    </div>
    <div class="item-inner">
        <a href="{:U('Apply/expert_page',array('id'=>$make_users['apply_id']))}">
            <div class="item-title-row">
                <div class="item-title">{$make_users['name']}
                    <font>预约时间
                    {if condition="$make_users['select_time'] eq 1"}星期一{/if}
                    {if condition="$make_users['select_time'] eq 2"}星期二{/if}
                    {if condition="$make_users['select_time'] eq 3"}星期三{/if}
                    {if condition="$make_users['select_time'] eq 4"}星期四{/if}
                    {if condition="$make_users['select_time'] eq 5"}星期五{/if}
                    {if condition="$make_users['select_time'] eq 6"}星期六{/if}
                    {if condition="$make_users['select_time'] eq 0"}星期日{/if}
                    </font>
                    {switch name="make_users['status']"}
                    {case value='1'}<a style="display: inline-block;float: right" onclick="success_yuyue(this, {$make_users['id']});" class="button button-fill">结束预约</a> {/case}
                    {case value='2'}<a style="display: inline-block;float: right;background: #ccc" class="button button-fill">已完成</a> {/case}
                    {case value='3'}<a style="display: inline-block;float: right;background: #ccc" class="button button-fill">已取消</a> {/case}
                    {/switch}

                </div>
            </div>
            <p>专家电话：{$make_users['mobile']} </p>
            <div class="item-subtitle">预约地点：{$make_users['address']}</div>
        </a>
        {switch name="make_users['status']"}
        {case value='1'}
        <a style="display: inline-block;float: left;margin-top: 10px;" id="success_yuyue" onclick="success_yuyue(this, {$make_users['id']});" class="button button-fill">结束预约</a>
        <a style="display: inline-block;float: right;margin-top: 10px;" id="release_yuyue" onclick="release_yuyue(this, {$make_users['id']});" class="button button-fill">取消预约</a>
        <a style="display: none;float: right;background: #ccc;margin-top: 10px;" id="release" class="button button-fill">已取消</a> 
        <a style="display: none;float: right;background: #ccc;margin-top: 10px;" id="success" class="button button-fill">已完成</a>
        <a style="display: none;float: left;margin-top: 10px;" id="discuss" href="{:U('Apply/discuss_list',array('id'=>$make_users['make_id']))}" class="button button-fill">评论</a>
        {/case}
        {case value='2'}
        <a style="display: inline-block;float: right;background: #ccc;margin-top: 10px;" class="button button-fill">已完成</a>
        <a style="display: inline-block;float: left;margin-top: 10px;" href="{:U('Apply/discuss_list',array('id'=>$make_users['make_id']))}" class="button button-fill">评论</a>
        {/case}
        {case value='3'}<a style="display: inline-block;float: right;background: #ccc;margin-top: 10px;" class="button button-fill">已取消</a> {/case}
        {/switch}
    </div>
</li>

{/foreach}
